﻿@model S4Store.Models.ImproveGuide.IndexModel
@{
    Layout = null;
    S4Store.Domain.Administrator CurrentUser = (S4Store.Domain.Administrator)ViewBag.CurrentUser;

}
<div class="listpage verticalSplitContainer" style="height:100%;">
    <form method="post" action="@Url.Action("AdminQuery")">
        @if ( CurrentUser.Position == S4Store.Domain.Position.SystemManager)
        {
            <div class="querybar">
                <table class="querytable">
                    <tbody>

                        <tr>
                            <td>
                                <div class="queryitem">
                                    <span class="querytitle">所属店：</span>
                                    <select name="Store" class="">
                                        <option value="">所有店</option>
                                        @foreach (var store in Model.Stores)
                                        {
                                            <option value="@store.Id">@store.Name</option>
                                        }
                                    </select>
                                </div>
                            </td>
                            <td>
                           
                            </td>
                            <td>
                           
                            </td>
                       
                        </tr>
                   
                    </tbody></table>
                <div class="querybuttonbar">
                    <div class="simplebutton"><div class="r"><button type="button" class="submit">检索</button></div></div>
                </div>
                <div class="clear"></div>
            </div>
        }
    </form>
    @if (CurrentUser.Position == S4Store.Domain.Position.SystemManager)
{
<div class="panelBar"  ratio="#25">
	<ul class="toolBar">
		<li class=""><a confirm="确定要删除吗?" target="ajax" href="@Url.Action("Delete")" backtype="refresh" postdata="{ids:link.getSelectids()}"><span  class="icon delete">删除改善建议</span></a></li>
	</ul>
</div>
}    
    <div  ratio="*" class="verticalSplitContainer dataRefresh">
        @Html.Action("AdminQuery")
    </div>
</div>